<template>
  <el-row class="tac">
    <el-col :span="12">
      <el-menu
        active-text-color="#00ACAC"
        background-color="#304055"
        class="el-menu-vertical-demo"
        default-active="2"
        text-color="#bfcbc9"
        router
        :collapse="isCollapse"
      >
      <el-menu-item index="/index">
        <el-icon><icon-menu /></el-icon>
        <span>系统首页</span>
      </el-menu-item>
        <el-sub-menu index="1">
          <template #title>
            <!-- <span class="iconfont icon-bianji"></span> -->
            <el-icon><location /></el-icon>
            <span>内容管理</span>
          </template>
            <el-menu-item index="1-1">
              <span class="iconfont icon-xiangxia"></span>
              轮播管理
            </el-menu-item>
            <el-menu-item index="/article">
            <span class="iconfont icon-xiangxia"></span>
              文章管理
            </el-menu-item>
        </el-sub-menu>
        <el-sub-menu index="2">
          <template #title>
            <el-icon><location /></el-icon>
            <span>会员管理</span>
          </template>
            <el-menu-item index="/viplist">会员列表</el-menu-item>
            <el-menu-item index="2-2">会员等级</el-menu-item>
        </el-sub-menu>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  props: ['isCollapse'],
  data() {
    return {

    };
  },
});
</script>

<style lang="scss" scoped>
.el-menu-vertical-demo {
    border-right: 0;

    .is-active {
        background-color: #1e78bf !important;
        color: #fff !important;
    }
}

.el-menu{
    height: 100vh;
}
.el-sub-menu__title{
  padding: 0 !important;
}
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
.iconfont{
  font-size: 12px;
  padding-right: 8px;
}
</style>
